package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.Products;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Mapper
@Repository
public interface ProductMapper {
    List<Products> selectProductList(@Param("name") String name, @Param("status") Integer status);
    void insertProduct(Products products);
    void updateProduct(Products products);
    Products selectProductById(@Param("id") Long id);
}
